﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="Majesty_of_Omega.GUI.Pages.Parts.ProductionPanel"
    Width="Auto" Height="Auto">
	<UserControl.Resources>
		<Style x:Key="TextProducedLabelStyle" TargetType="{x:Type TextBlock}">
			<Setter Property="Foreground" Value="#FFFFFFFF"/>
	    <Setter Property="VerticalAlignment" Value="Center" />
      <Setter Property="HorizontalAlignment" Value="Left" />
      <Setter Property="Margin" Value="8,0,0,0" />
		</Style>
    <Style x:Key="TextProducedValueStyle" TargetType="{x:Type TextBlock}">
      <Setter Property="Foreground" Value="#FFFFFFFF"/>
      <Setter Property="VerticalAlignment" Value="Center" />
      <Setter Property="HorizontalAlignment" Value="Right" />
      <Setter Property="Margin" Value="0,0,16,0" />
    </Style>
    <Style x:Key="IconProducedStyle" TargetType="{x:Type Image}">
      <Setter Property="VerticalAlignment" Value="Center" />
    	<Setter Property="MaxHeight" Value="20"/>
    	<Setter Property="MaxWidth" Value="20"/> 
      <Setter Property="Margin" Value="0,4,0,4" />
    </Style>
  </UserControl.Resources>
    <Grid>
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="0.16*"/>
    		<ColumnDefinition Width="0.427*"/>
    		<ColumnDefinition Width="0.213*"/>
    		<ColumnDefinition Width="0.2*"/>
    	</Grid.ColumnDefinitions>
    	<Grid.RowDefinitions>
    		<RowDefinition Height="Auto" />
    		<RowDefinition Height="Auto" />
    		<RowDefinition Height="Auto" />
    		<RowDefinition Height="Auto" />
    		<RowDefinition Height="Auto" />
    		<RowDefinition Height="Auto" />
    		<RowDefinition Height="Auto" />
    		<RowDefinition Height="Auto" />
    		<RowDefinition Height="Auto" />
    	</Grid.RowDefinitions>

      <TextBlock Text="Need" Style="{DynamicResource TextProducedLabelStyle}" Grid.Column="3"/>
      <TextBlock Text="Produced" Style="{DynamicResource TextProducedLabelStyle}" Grid.Column="2" />

      <!-- Food  -->
      <Image Style="{DynamicResource IconProducedStyle}" Grid.Row="1" Source="\Graphics\UI\ico_plnts_foodprod.png" />
      <TextBlock Text="Food:"  Style="{DynamicResource TextProducedLabelStyle}" Grid.Column="1" Grid.Row="1" />
      <TextBlock Text="3" Style="{DynamicResource TextProducedValueStyle}" Grid.Column="2" Grid.Row="1" />
      <TextBlock Text="0" Style="{DynamicResource TextProducedValueStyle}" Grid.Column="3" Grid.Row="1" />

      <!-- Minerals -->
      <Image Style="{DynamicResource IconProducedStyle}" Grid.Row="2" Source="\Graphics\UI\ico_plnts_minprod.png" />
      <TextBlock Text="Minerals:"  Style="{DynamicResource TextProducedLabelStyle}" Grid.Column="1" Grid.Row="2" />
      <TextBlock Text="3" Style="{DynamicResource TextProducedValueStyle}" Grid.Column="2" Grid.Row="2" />
      <TextBlock Text="0" Style="{DynamicResource TextProducedValueStyle}" Grid.Column="3" Grid.Row="2" />

      <!-- Industry -->
      <Image Style="{DynamicResource IconProducedStyle}" Grid.Row="3" Source="\Graphics\UI\ico_plnts_cement.png" />
      <TextBlock Text="Industry:"  Style="{DynamicResource TextProducedLabelStyle}" Grid.Column="1" Grid.Row="3" />
      <TextBlock Text="3" Style="{DynamicResource TextProducedValueStyle}" Grid.Column="2" Grid.Row="3" />
      <TextBlock Text="0" Style="{DynamicResource TextProducedValueStyle}" Grid.Column="3" Grid.Row="3" />
      
      <!-- Production -->
      <Image Style="{DynamicResource IconProducedStyle}" Grid.Row="4" Source="\Graphics\UI\ico_plnts_industry.png" />
      <TextBlock Text="Production:"  Style="{DynamicResource TextProducedLabelStyle}" Grid.Column="1" Grid.Row="4" />
      <TextBlock Text="3" Style="{DynamicResource TextProducedValueStyle}" Grid.Column="2" Grid.Row="4" />
      <TextBlock Text="0" Style="{DynamicResource TextProducedValueStyle}" Grid.Column="3" Grid.Row="4" />
      
      <!-- Test -->
      <Image Style="{DynamicResource IconProducedStyle}" Grid.Row="5" Source="\Graphics\UI\ico_plnts_ttubes.png" />
      <TextBlock Text="Test Tubes:"  Style="{DynamicResource TextProducedLabelStyle}" Grid.Column="1" Grid.Row="5" />
      <TextBlock Text="3" Style="{DynamicResource TextProducedValueStyle}" Grid.Column="2" Grid.Row="5" />
      <TextBlock Text="0" Style="{DynamicResource TextProducedValueStyle}" Grid.Column="3" Grid.Row="5" />
      
      <!-- Research -->
      <Image Style="{DynamicResource IconProducedStyle}" Grid.Row="6" Source="\Graphics\UI\Icon_researchpoints.png" />
      <TextBlock Text="Research:"  Style="{DynamicResource TextProducedLabelStyle}" Grid.Column="1" Grid.Row="6" />
      <TextBlock Text="3" Style="{DynamicResource TextProducedValueStyle}" Grid.Column="2" Grid.Row="6" />
      <TextBlock Text="0" Style="{DynamicResource TextProducedValueStyle}" Grid.Column="3" Grid.Row="6" />

    </Grid>
</UserControl>
